//
//  ClassifyCustomCelModel.m
//  Cook
//
//  Created by Macbookpro on 15/4/22.
//  Copyright (c) 2015年 dingjun. All rights reserved.
//

#import "ClassifyCustomCelModel.h"

@implementation ClassifyCustomCelModel

- (void)dealloc
{
    [_button release];
    [_label release];
    
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.button = [[ClassifyCustomButton alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height)];
//        [_button setBackgroundColor:[UIColor yellowColor]];
        _button.layer.borderWidth = 1.0f;
        [self.contentView addSubview:_button];
        [_button release];
        
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, _button.bounds.size.width, _button.bounds.size.height)];
        _label.font = [UIFont fontWithName:@"Helvetica-Bold" size:13];
        _label.textAlignment = NSTextAlignmentCenter;
        [_button addSubview:_label];
        [_label release];
    }
    return self;
}


@end
